function GoodsList(req,res,next) {
    // req 请求头 
    // res 响应头 
    // req.query 获取get请求参数  对象 
    // req.query {} 

    const {current,pagesize} = req.query;
    if(!current || !pagesize){
        res.send({
            code:0,
            message:'没有携带current或者pagesize参数'
        })
        return
    }
    if(isNaN(current) || isNaN(pagesize)){
        res.send({
            code:0,
            message:'参数格式不对,必须是个数字'
        })
        return
    }
    next();

    
}


exports.GoodsList = GoodsList;